<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Apps\Apis\Index;

use Srv\Libs\ConfModel\RouteConfData;
use Srv\Libs\Frame\ActionAbstract;
use Srv\Libs\Frame\DTOAbstract;
use Srv\Libs\Frame\ResponseData;
use Srv\Libs\Frame\VOAbstract;

final class IndexApisAct extends ActionAbstract
{
    /**
     * @url /index
     * @auth NULL
     * @flag HIDE
     * 默认Index
     */
    public function index(RouteConfData $RouteConfData, ?DTOAbstract $DTOClass, ?VOAbstract $VOClass):bool
    {
        unset($RouteConfData, $DTOClass, $VOClass);
        ResponseData::setHttpCode(403);
        ResponseData::rspSuccText('');
        return true;
    }
}